﻿using System;

namespace enyo.db8
{
    public class PutKindParam : DbParam
    {
        /// <summary>
        /// Kind identifier.
        /// </summary>
        public string id;	 

        /// <summary>
        /// Kind owner - service's bus address or app's app ID. Only the owner has permission to modify the kind.
        /// </summary>
        public string Owner;

        /// <summary>
        /// JSON Syntax for data objects of this kind. If set, this kind's data objects are validated before being stored.
        /// </summary>
        public string/*TODO:link on webOS web is broken, need check the type*/ Syntax;

        /// <summary>
        /// Backup and restore objects of this kind flag. Objects are backed up to Palm's servers on a daily basis.
        /// If the user moves to another device, saved app data can be restored. Default is false.
        /// </summary>
        public bool Sync;

        /// <summary>
        /// IDs of kind parents.
        /// </summary>
        public string[] Extends;

        /// <summary>
        /// Kind indexes.
        /// </summary>
        public IndexClause[] Indexes;

        /// <summary>
        /// Array of revision sets. See Using Revision Sets for more information.
        /// </summary>
        public RevSetClause[] RevSets;
    }
}
